package com.example.administrator.jinritoutiao.fragment;


import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.example.administrator.jinritoutiao.MainActivity;
import com.example.administrator.jinritoutiao.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class FragmentGuide2 extends Fragment implements View.OnClickListener {


    public FragmentGuide2() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_fragment_guide2, container, false);
        ImageView iv = (ImageView) view.findViewById(R.id.close_introduction);
        iv.setOnClickListener(this);
        return view;
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.close_introduction:
                Intent intent = new Intent(getActivity(), MainActivity.class);
                startActivity(intent);
                getActivity().finish();
                break;
        }
    }
}
